package org.opens.hex;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class NmcPackageGridGroup {

    private String id;

    private String groupId;

    private String childId;

    private Integer orderd;

    public static List<NmcPackageGridGroup> getList(String groupId) {
        return Arrays.asList(
                new NmcPackageGridGroup("31", "16", "17", 1),
                new NmcPackageGridGroup("32", "16", "18", 2),
                new NmcPackageGridGroup("33", "16", "19", 3),
                new NmcPackageGridGroup("34", "16", "20", 4),
                new NmcPackageGridGroup("35", "16", "21", 5),
                new NmcPackageGridGroup("36", "16", "22", 6),
                new NmcPackageGridGroup("36", "16", "23", 7),
                new NmcPackageGridGroup("37", "23", "24", 8)
        ).stream().filter(x -> x.getGroupId().equals(groupId)).collect(Collectors.toList());
    }

}
